import request from '@/utils/request'

// 查询服务功能列表
export function listServicesInfo(query) {
  return request({
    url: '/ruoyi/servicesInfo/list',
    method: 'get',
    params: query
  })
}

// 查询服务功能详细
export function getServicesInfo(serviceId) {
  return request({
    url: '/ruoyi/servicesInfo/' + serviceId,
    method: 'get'
  })
}

// 新增服务功能
export function addServicesInfo(data) {
  return request({
    url: '/ruoyi/servicesInfo',
    method: 'post',
    data: data
  })
}

// 修改服务功能
export function updateServicesInfo(data) {
  return request({
    url: '/ruoyi/servicesInfo',
    method: 'put',
    data: data
  })
}

// 删除服务功能
export function delServicesInfo(serviceId) {
  return request({
    url: '/ruoyi/servicesInfo/' + serviceId,
    method: 'delete'
  })
}
